package com.googlecode.agileplugins.timer;

import com.intellij.openapi.components.ApplicationComponent;

public class TimerComponent implements ApplicationComponent {
    private TimesheetTimer timesheetTimer;

    public TimerComponent() {
    }

    public void initComponent() {
        timesheetTimer = new TimesheetTimer();
        timesheetTimer.start();
    }

    public void disposeComponent() {
        if (timesheetTimer != null) {
            timesheetTimer.stopIt();
        }
    }

    public String getComponentName() {
        return "TimerComponent";
    }
}
